package com.tengju.user.domain.model.user;

import com.idanchuang.support.mybatis.crypt.annotation.CryptField;
import com.tengju.user.domain.model.PageQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class UserQueryForm extends PageQuery {

    private List<UserIdCode> idCodes;

    @CryptField
    private String mobile;

    private StarLevelEnum starLevel;


    public UserQueryForm(List<UserIdCode> idCodes, String mobile, StarLevelEnum starLevel, Integer pageIndex, Integer pageSize) {
        this.idCodes = idCodes;
        this.mobile = mobile;
        this.starLevel = starLevel;
        super.setPageIndex(pageIndex);
        super.setPageSize(pageSize);
    }
}
